import request from '@/utils/request'

// 查询文章分类列表
export function listArticleType(query) {
  return request({
    url: '/business/articleType/list',
    method: 'get',
    params: query
  })
}

// 查询文章分类详细
export function getArticleType(id) {
  return request({
    url: '/business/articleType/' + id,
    method: 'get'
  })
}

// 新增文章分类
export function addArticleType(data) {
  return request({
    url: '/business/articleType',
    method: 'post',
    data: data
  })
}

// 修改文章分类
export function updateArticleType(data) {
  return request({
    url: '/business/articleType',
    method: 'put',
    data: data
  })
}

// 删除文章分类
export function delArticleType(id) {
  return request({
    url: '/business/articleType/' + id,
    method: 'delete'
  })
}

// 导出文章分类
export function exportArticleType(query) {
  return request({
    url: '/business/articleType/export',
    method: 'get',
    params: query
  })
}